//
//  ArticleModel.m
//  花花时尚
//
//  Created by 霍文轩 on 15/8/25.
//  Copyright (c) 2015年 霍文轩. All rights reserved.
//

#import "ArticleModel.h"

@implementation ArticleModel

- (void)dealloc
{
    [_title release];
    [_simgs release];
    [super dealloc];
}
- (void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:[NSNumber numberWithLongLong:self.id] forKey:@"id"];
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.simgs forKey:@"simgs"];
}
- (id)initWithCoder:(NSCoder *)aDecoder{
    self = [super init];
    if(self){
        self.id = [[aDecoder decodeObjectForKey:@"id"] longLongValue];
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.simgs = [aDecoder decodeObjectForKey:@"simgs"];
    }
    return self;
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
@end
